package retrofit.boot.client;

import lombok.Builder;
import lombok.Getter;
import retrofit.client.Request;

/**
 * Created by wulg on 2019/10/25
 * description:请求封装类
 */
public class RequestWrapper {

    private Request request;

    private Options options;

    public RequestWrapper(Request request,Options options) {
        this.request = request;
        this.options = options;
    }

    public Request getRequest() {
        return request;
    }

    public Options getOptions() {
        return options;
    }

    @Builder
    @Getter
    public static class Options {

        private String endpointName;

        private Integer timeout;
    }
}
